{__NOLAYOUT__}
{include file='../public/header' /}
<div class="container-fluid bg-white h-100 table-responsive ">
    <br>
    <div class="row">
        <form class="m-auto w-75" id="content" action="{$Request.root}/{$Request.controller}/editPostCategory">
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">所属分类</label>
                <div class="col-sm-10">
                    <div class="form-group">
                        <select class="custom-select select2bs4" name="parent_id">
                            {if $editData.parent_id == 0 }
                            <option value="0" selected>无</option>
                            {else /}
                            {volist name="categorylist" id="vo"}
                            <option value="{$vo.id}" {$vo.id==$editData.parent_id ? 'selected' :''}>{$vo.showName}</option>
                            {/volist}
                            {/if}
                        </select>
                    </div>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">分类名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="title" value="{$editData.title}" placeholder="请输入分类名称">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">SEO标题</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="seoTitle" value="{$editData.seoTitle}" placeholder="请输入SEO标题">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">SEO关键字</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="seoKeywords" value="{$editData.seoKeywords}" placeholder="请输入SEO关键字">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">SEO描述</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="seoDescription" value="{$editData.seoDescription}" placeholder="请输入SEO描述">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">排序</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="sort" value="{$editData.sort}" placeholder="请输入排序">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="remark" value="{$editData.remark}" placeholder="请输入备注">
                </div>
            </div>
            <div class="form-group display-none">
                <input type="hidden" name="id" value="{$editData.id}">
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label">显示</label>
                <div class="col-sm-10">
                    <div class="form-group">
                        <div class="icheck-success d-inline">
                            <input type="checkbox" name="show_status" {$editData.show_status==1 ? 'checked' :''} id="showStatus">
                            <label for="showStatus">
                                是否可用
                            </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group row">
                
                <button class="sub-bindbtn" lay-submit lay-filter="bind" style="display: none;">
                </button>
            </div>
        </form>
    </div>
</div>
{include file='../public/script' /}
<script src="__ADMINSTATIC__/js/validate/categoryValidate.js"></script>
